package ink.ykb.demo.config;

/**
 * 业务异常
 * @author mading
 *
 */
public class ServiceException extends RuntimeException{

	private static final long serialVersionUID = 1L;

	private String code;

    private Object data;

    public ServiceException(String code,String message) {
        super(message);
        this.code = code;
    }
    
    public ServiceException(String code,String message, Throwable cause) {
        super(message,cause);
        this.code = code;
    }

    public ServiceException(String code,String message,Object data){
        super(message);
        this.code = code;
        this.data = data;
    }

    public String getCode() {
      return code;
    }

    public void setCode(String code) {
      this.code = code;
    }

    public Object getData() {
      return data;
    }

    public void setData(Object data) {
      this.data = data;
    }
    
    
    
    
}
